package com.ipan.weixin.cmd;

import java.util.ArrayList;
import java.util.List;

import com.ipan.weixin.msg.general.XmlMsg;

/**
 * 命令解析器链
 * 
 * @author iPan
 * @version 2013-12-30
 */
public class CmdChain {

	private List<CmdMatcher> matchers = new ArrayList<CmdMatcher>();
	
	public void addMatcher(CmdMatcher matcher) {
		matchers.add(matcher);
	}
	
	public void removeMatcher(CmdMatcher matcher) {
		matchers.remove(matcher);
	}
	
	public void clearMatcher() {
		matchers.clear();
	}
	
	public XmlMsg process(String content) {
		return null;
	}
	
}
